const path = require('path');
module.exports = {
    entry: {
        array: './src/array.js'
        // polyfill: require.resolve('@babel/polyfill')
    },
    output: {
        filename: '[name]bundle.js',
        path: path.resolve(__dirname, 'lib')
    },
    module: {
        rules: [
            {
                test:/\.js$/,
                use: 'babel-loader'
            }
        ]
    },
    mode: 'development',
    resolve: {
        modules: ['./node_modules'],
        alias: {
            "core-js": path.resolve(__dirname, 'node_modules/core-js/')
        }
    }
}